﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Prices
{
    public class PriceIncresedEventArgs : EventArgs
    {
        private decimal oldPrice = default(decimal);
        private decimal newPrice = default(decimal);

        public decimal OldPrice
        {
            get { return this.oldPrice; }
        }
        public decimal NewPrice
        {
            get { return this.newPrice; }
        }

        public PriceIncresedEventArgs(decimal oldPrice, decimal newPrice)
        {
            if (oldPrice < 0 || newPrice < 0)
            {
                throw new ArgumentException("Product price cannot be negative number ( no gifts )");
            }
            this.oldPrice = oldPrice;
            this.newPrice = newPrice;
        }
    }
}
